var express = require('express')
var Router = express.Router()

var OperationOfDatabase=require('../databaseManage/OperationOfDatabase')
var db=new OperationOfDatabase();

 
Router.post('/', function (req, res) {
   //var data=JSON.parse(req.query[0])
   // console.log(req.body);
   var name=req.body.user_name;
   var password=req.body.password;
   var icon=req.body.img_src;
   db.addNewUser(name,password,icon,res);
   // res.send('<h1>服务器端响应了register功能</h1>')
})
module.exports = Router;